<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">

    <title>demo01</title>
    <script src="./node_modules/vue/dist/vue.js"></script>
</head>
<body>
    <div id="app">
        报名：<input type="text" value="name"><br>
        粉丝数：<input type="text" v-model="num"><br>
        <input type="button" v-on:click="add" value="增加">
    </div>
</body>
<script>
    new Vue({
        el: "#app",
        data: {
            name: 'hello vue',
            num: 0
        },
        methods: {
          add:function (){
              this.num++;
          }
        }
    });
</script>
</html>